package com.tuling.designpattern.test01;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author 林瑞涛
 * @desc
 * @date 2021年08月17日 20:53
 */
public class Test01 {
    public static void main(String[] args) {
        /*BigDecimal a = new BigDecimal("325.6");
        BigDecimal b = new BigDecimal("100.0");
        BigDecimal c = a.divide(b, 2, BigDecimal.ROUND_HALF_UP);
        BigDecimal d = a.multiply(b);
        System.out.println(c);
        System.out.println(d);

        System.out.println(TranTest.getByType(1));
        System.out.println(TranTest.getByType(2));
        System.out.println(TranTest.getByType(4));
        System.out.println(TranTest.getByType(8));
        System.out.println(TranTest.getByType(16));
        System.out.println(TranTest.getByType(32));
        System.out.println(TranTest.getByType(64));
        System.out.println(TranTest.getByType(128));*/
        /*BigDecimal a = new BigDecimal("12");
        BigDecimal b = new BigDecimal("0.333333");
        a = a.add(b);
        a = a.negate();
        System.out.println(a);*/
        /*String str = "深圳科技";
        if(str.indexOf("圳科") != -1){
            System.out.println("ok");
        }else{
            System.out.println(str.indexOf("深圳"));
        }

        Integer count = -1;
        Integer newCount = count-1<=0?0:count-1;
        System.out.println(newCount);
*/
        System.out.println("2".equals(Integer.valueOf("2")));

    }
}
